package com.example.mbl.service;

import com.example.mbl.entity.Article;
import com.example.mbl.result.PageResult;
import com.example.mbl.result.WebRestResult;
import com.example.mbl.result.business.ArticlePageResult;

import java.util.List;

public interface ArticleService {
    List<Article> searchItemsByKeyWord(String keyword);
    WebRestResult addArticle(Article article);
    WebRestResult deleteArticle(Article article);
    WebRestResult updateArticle(Article article);
    WebRestResult setArticleVisible(Article article);
    PageResult<ArticlePageResult> getArticleList(String title,String publishdate,int page,int pagesize);
}
